<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Vinculados</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">

				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">



									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 35px;'>
										<ice:panelGrid width="640">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px;background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'>
												<ice:outputText value="VINCULADOS"
													styleClass="tituloform" />
											</ice:panelGrid>

											<ice:panelGrid columns="5" style="height: 20px" >
												<ice:outputText value="Buscar :"
													style="color:#004080; font-size: 12px; font-weight: bold;" />
												


												<ice:selectOneMenu value="#{Vinculado_MB.busquedacmbbus}"
													style="width: 107px" tabindex="1"
													valueChangeListener="#{Vinculado_MB.action_selecBusqueda}"
													binding="#{Vinculado_MB.seleconebusqueda}"> 
													<f:selectItem itemValue="todos" itemLabel="Todos" />
													<f:selectItem itemValue="vincedula" itemLabel="Codigo" />
													<f:selectItem itemValue="vinnombre" itemLabel="Nombre" />
												</ice:selectOneMenu>


												<ice:panelGrid >
													<ice:inputText value="#{Vinculado_MB.buscar}"
														binding="#{Vinculado_MB.txtBuscar}"
														 />
													
													

													



												</ice:panelGrid>

												<ice:commandButton value="Buscar"
													image="./Media/img/But4v.bmp"
													binding="#{Vinculado_MB.cmdBuscar}"
													actionListener="#{Vinculado_MB.action_Buscar}" />


											</ice:panelGrid>
											<ice:dataTable var="item" value="#{Vinculado_MB.vinculadow}"
												id="tablebodega" rows="6" rendered="true"
												headerClass="iceDatTblColHdrv" width="600">

												<ice:outputText value="Listado De Requisiciones"
													style="font-family: Verdana, Arial, Sans-Serif; color: #004080; font-size: 12px; text-align: left" />

												<ice:column style="width: 80px">
													<ice:rowSelector id="selected" value="#{item.selected}"
														multiple="false"
														selectionListener="#{Vinculado_MB.rowSelectionListener}" 
														selectedClass="QsiceRowSelSelectedMouseOver"
														mouseOverClass="QsiceRowSelSelected" />
													<f:facet name="header">
														<ice:outputText value="CEDULA" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.vinculadow.vincedula}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 180px">
													<f:facet name="header">
														<ice:outputText value="NOMBRE" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.vinculadow.vinnombre}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">
													</ice:outputText>
												</ice:column>



												<ice:column style="width: 120px">
													<f:facet name="header">
														<ice:outputText value="ESTADO"
															styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.estado}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>


											</ice:dataTable>
											<ice:panelGrid columns="5" style="width: 524px; height: 39px">
												<ice:dataPaginator id="paginator" for="tablebodega"
													paginator="true" paginatorMaxPages="4" style="height: 17px">
													<f:facet name="first">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-first.gif" />
													</f:facet>
													<f:facet name="last">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-last.gif" />
													</f:facet>
													<f:facet name="previous">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-previous.gif" />
													</f:facet>
													<f:facet name="next">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-next.gif" />
													</f:facet>
													<f:facet name="fastforward">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-ff.gif" />
													</f:facet>
													<f:facet name="fastrewind">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-fr.gif" />
													</f:facet>
												</ice:dataPaginator>
												<ice:commandButton value="NUEVO"
													binding="#{Vinculado_MB.cmdnuevo}" id="nuevo" 
													action="#{Vinculado_MB.action_Nuevo}" styleClass="botonv" />
												<ice:commandButton value="PROPIEDADES"
													binding="#{Vinculado_MB.cmdedita}"
													action="#{Vinculado_MB.action_Editar}" styleClass="botonv" />

												<ice:commandButton value="ELIMINAR"
													binding="#{Vinculado_MB.cmdelimina}"
													actionListener="#{Vinculado_MB.action_confirmacionEliminar}"
													styleClass="botonv" />
												<!--  
											              <ice:commandButton value="procedimiento"
												               action="#{Vinculado_MB.buscaproducto}" styleClass="botonv" />
                                                 -->
											</ice:panelGrid>

											





											<ice:panelPopup id="popupVenta" draggable="false"
												modal="true" visible="#{Vinculado_MB.modalRendered}" 
												autoCentre="true" styleClass="popupBody"
												style=" width: 350px; height: 120px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea Eliminar el registro " /><br />
															<ice:outputText styleClass="qs_label"
															value=" #{Vinculado_MB.nombreEliminar}?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"  
															binding="#{Vinculado_MB.cmdsielimina}"
																actionListener="#{Vinculado_MB.action_EliminarTabla}" />
															<ice:commandButton type="submit" value="No"
															binding="#{Vinculado_MB.cmdnoelimina}"
																actionListener="#{Vinculado_MB.Activapopupeliminar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>
											<ice:panelGrid>
												<ice:messages id="msg"
													style="width: 100px; height: 20px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
											</ice:panelGrid>


										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>
